﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Example18.aspx.cs" Inherits="Chapter17.Example18" %>

<!DOCTYPE html>

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>代码清单 17-18 使用 CSS 计数器</title>
    <style type="text/css">
        body {
            counter-reset: paracount 10;
        }

        p:before {
            counter-increment: paracount;
            content: counter(paracount)". ";
        }
    </style>
</head>
<body>
    <a href="http://apress.com">Visit the Apress website</a>
    <p>I like <span lang="en-uk" class="class2">apples</span> and orangres.</p>
    <p>I also like <span lang="en-uk" class="class2">mangos</span> and cherries.</p>
    <a id="w3canchor" href="http://w3c.org">Visit the W3C website</a>
</body>
</html>
